package com.camel.record.model;

import com.baomidou.mybatisplus.annotation.*;
import com.camel.core.config.RequestEnumJsonDeserialize;
import com.camel.core.entity.BasePaginationEntity;
import com.camel.core.enums.YesNo;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import lombok.Data;

import java.io.Serializable;

/**
 * 坐席
 *
 * @author Administrator
 * @TableName zs_seat
 */
@TableName(value = "zs_seat")
@Data
public class ZsSeat extends BasePaginationEntity implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 分配的用户ID
     */
    @TableField(value = "uid", updateStrategy = FieldStrategy.IGNORED)
    private Integer uid;

    @TableField(exist = false)
    private String user;

    /**
     * 坐席号
     */
    @TableField(value = "agentnum")
    private String agentnum;

    @TableField(value = "agentname")
    private String agentname;

    /**
     * 坐席密码
     */
    @TableField(value = "password")
    private String password;

    /**
     *
     */
    @TableField(value = "description")
    private String description;

    /**
     * 0为未占用；1为占用
     */
    @TableField(value = "state")
    @JsonDeserialize(using = RequestEnumJsonDeserialize.class)
    private YesNo state;

    /**
     * 工号
     */
    @TableField(value = "work_num", updateStrategy = FieldStrategy.IGNORED)
    private String workNum;

    /**
     * 当前属于问卷ID
     */
    @TableField(value = "survey_id")
    private Integer surveyId;

    /**
     * 当前属于队列ID
     */
    @TableField(value = "queue_id")
    private Integer queueId;

    /**
     * 创建时间
     */
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}